﻿
@using Nop.Core;
@using Nop.Core.Infrastructure;
@{
    Layout = "~/Views/Shared/_ColumnsTwo.cshtml";

    //title
    Html.AddTitleParts("登录");

    //register URL with return URL (if specified)
    var registerUrl = Url.RouteUrl("Register");
    if (!String.IsNullOrEmpty(this.Context.Request.QueryString["returnUrl"]))
    {
        var webHelper = EngineContext.Current.Resolve<IWebHelper>();
        registerUrl = webHelper.ModifyQueryString(registerUrl, "returnurl=" + HttpUtility.UrlEncode(this.Context.Request.QueryString["returnUrl"]), null);
    }
}

<div class="form-data pos">
    @*<a href=""><img src="~/Themes/DefaultClean/Content/images/head-logo.png" class="head-logo"></a>*@
    <div style="position: absolute; top: -60px; color: #fff; font-size: 32px; text-align: center; display: block; width: 100%; letter-spacing: 24px; padding-left: 12px; text-shadow: 2px 2px 4px #000000; ">设备巡检系统</div>
    <div class="change-login">
        <p class="account_number on">账号登录</p>
        @*<p class="message">短信登录</p>*@
    </div>
    <div class="form1">
        <p class="p-input pos">
            <label for="num">手机号/用户名/邮箱</label>
            <input type="text" id="num">
            <span class="tel-warn num-err hide"><em>账号或密码错误，请重新输入</em><i class="icon-warn"></i></span>
        </p>
        <p class="p-input pos">
            <label for="pass">请输入密码</label>
            <input type="password" style="display:none" />
            <input type="password" id="pass" autocomplete="new-password">
            <span class="tel-warn pass-err hide"><em>账号或密码错误，请重新输入</em><i class="icon-warn"></i></span>
        </p>
        <p class="p-input pos code hide">
            <label for="veri">请输入验证码</label>
            <input type="text" id="veri">
            <img src="">
            <span class="tel-warn img-err hide"><em>账号或密码错误，请重新输入</em><i class="icon-warn"></i></span>
        </p>
    </div>
    @*<div class="form2 hide">
        <p class="p-input pos">
            <label for="num2">手机号</label>
            <input type="number" id="num2">
            <span class="tel-warn num2-err hide"><em>账号或密码错误</em><i class="icon-warn"></i></span>
        </p>
        <p class="p-input pos code2">
            <label for="veri">请输入验证码</label>
            <input type="text" id="veri2">
            <img src="">
            <span class="tel-warn img-err hide"><em>账号或密码错误，请重新输入</em><i class="icon-warn"></i></span>
        </p>
        <p class="p-input pos">
            <label for="veri-code">输入验证码</label>
            <input type="number" id="veri-code">
            <a href="javascript:;" class="send">发送验证码</a>
            <span class="time hide"><em>120</em>s</span>
            <span class="tel-warn error hide">验证码错误</span>
        </p>
    </div>*@
    @*<div class="r-forget cl">
        <a href="@registerUrl" class="z">账号注册</a>
    </div>*@
    <button class="lang-btn off log-btn">登录</button>
    <p class="right">Copyright © 2025 
    @*<a class="gongsi" target="_blank" href="http://www.sqcdrj.com/">宿迁市创达科技中心</a>*@ 
    @*版权所有*@ 
    备案号：<a class="beianhao" target="_blank" href="http://beian.miit.gov.cn">苏ICP备19035241号-1</a></p>
</div>
<script>
    var login_error = 0;
    if (login_error == 1) {
        $('.code').removeClass('hide');
        $('.code').find('img').attr('src', site + '/Common/GenerateCaptcha?height=30&time=' + (new Date()).getTime()).click(function (event) {
            $(this).attr('src', site + '/Common/GenerateCaptcha?height=30&time=' + (new Date()).getTime());
        });
    }
</script>